package com.rxy.zkclient;

import org.I0Itec.zkclient.ZkClient;

public class Delete_Node {
    public static void main(String[] args) {
        ZkClient zkClient = new ZkClient("192.168.31.247:2181");
        String path = "/rxy-zkClient/c1";
        zkClient.createPersistent(path + "/c11", true); // 非递归创建
        zkClient.deleteRecursive(path); // 递归删除节点方法
        System.out.println("递归删除节点成功");
    }
}
